package com.lemon.core.captcha.service;

import com.lemon.core.captcha.domain.ImageCaptcha;

/**
 * 图片验证码服务接口
 *
 * @author pan
 * @since 2017-03-22
 */
public interface ImageCaptchaService {

    /**
     * 获取验证码
     *
     * @return
     */
    ImageCaptcha get();

    /**
     * 校验验证码
     *
     * @param captchaKey
     * @param captchaCode
     * @return
     */
    boolean verification(String captchaKey, String captchaCode);

    /**
     * 删除验证码
     *
     * @param captchaKey
     */
    void delete(String captchaKey);
}
